package com.winskysoft.frame;


import org.eclipse.jdt.internal.core.JavaProject;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.wb.swt.SWTResourceManager;
import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Spinner;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Composite;

public class MainFrame {
	
	private JavaProject javaProject;
	
	/**
	 * @wbp.parser.entryPoint
	 */
	public MainFrame() {
	}
	
	/**
	 * @wbp.parser.entryPoint
	 */
	public MainFrame(JavaProject javaProject) {
		this.javaProject=javaProject;
	}

	protected Shell shell;
	private Composite composite;
	private Button btnNewButton_1;

	/**
	 * Launch the application.
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			MainFrame window = new MainFrame();
			window.open();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Open the window.
	 * @wbp.parser.entryPoint
	 */
	public void open() {
		Display display = Display.getDefault();
		createContents();
		shell.open();
		shell.layout();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

	/**
	 * Create contents of the window.
	 * @wbp.parser.entryPoint
	 */
	protected void createContents() {
		shell = new Shell(SWT.CLOSE);
		shell.setSize(600, 400);
		shell.setLocation(200, 200);
		shell.setText("Builder Tool");
		shell.setData(javaProject);
		
		composite = new SelectSqlPanel(shell, SWT.NONE);
		composite.setBounds(0, 0, 594, 368);
		
		

	}
}
